<?php
namespace App\Http\Controllers\Buz;

use App\Http\Controllers\Controller;
use App\Lib\BankMap;
use App\Models\PlatUserBank;

class RemitController extends Controller
{
    public function withdraw()
    {
        $user = \Session::get('user');
        $bank = PlatUserBank::where('uid', $user->id)->first(['account', 'category']);
        $bankName = BankMap::getNameFromMap($bank->category);
        return view('buz.remit.withdraw', compact('bank', 'bankName'));
    }
}
